package com.xmwzw.catpu.http.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author : wangzw
 * @date : 20-4-9下午7:40
 * @desc :
 */
public class DetailBean implements Parcelable {

    /**
     * id : 6
     * name : ceshi1
     * version : ceshi1
     * times : 3
     * content : <p>这个是测试<img width="530" height="340" src="http://api.map.baidu.com/staticimage?center=116.404,39.915&zoom=10&width=530&height=340&markers=116.404,39.915"/></p><p></p>
     * icon_url : http://47.105.156.209:8080/upload/202004/5e8b42e2dbe27.png
     * img :
     * type_id : 2
     * type_name : 小说
     */

    private String id;
    private String name;
    private String version;
    private String times;
    private String content;
    private String icon_url;
    private String img;
    private String type_id;
    private String type_name;
    private String down_url;

    public DetailBean(){}

    protected DetailBean(Parcel in) {
        id = in.readString();
        name = in.readString();
        version = in.readString();
        times = in.readString();
        content = in.readString();
        icon_url = in.readString();
        img = in.readString();
        type_id = in.readString();
        type_name = in.readString();
        down_url = in.readString();
    }

    public static final Creator<DetailBean> CREATOR = new Creator<DetailBean>() {
        @Override
        public DetailBean createFromParcel(Parcel in) {
            return new DetailBean(in);
        }

        @Override
        public DetailBean[] newArray(int size) {
            return new DetailBean[size];
        }
    };

    public String getDown_url() {
        return down_url;
    }

    public void setDown_url(String down_url) {
        this.down_url = down_url;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIcon_url() {
        return icon_url;
    }

    public void setIcon_url(String icon_url) {
        this.icon_url = icon_url;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getType_id() {
        return type_id;
    }

    public void setType_id(String type_id) {
        this.type_id = type_id;
    }

    public String getType_name() {
        return type_name;
    }

    public void setType_name(String type_name) {
        this.type_name = type_name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(id);
        parcel.writeString(name);
        parcel.writeString(version);
        parcel.writeString(times);
        parcel.writeString(content);
        parcel.writeString(icon_url);
        parcel.writeString(img);
        parcel.writeString(type_id);
        parcel.writeString(type_name);
        parcel.writeString(down_url);
    }
}
